package com.lantosec.hmrp.modules.category.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.category.entity.AssetsImage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 * 资产图片上传记录 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="AssetsImage对象", description="资产图片上传记录")
public class AssetsImageVO extends BaseVO<AssetsImage> {
    private static final long serialVersionUID = 1L;


    public AssetsImageVO(AssetsImage entity){
        this.assetsId = entity.getAssetsId();
        this.uploadId = entity.getUploadId();
        this.submitTime = entity.getSubmitTime();
        this.submitUserId = entity.getSubmitUserId();
        this.submitUser = entity.getSubmitUser();
        this.flag = entity.getFlag();
    }

    @Override
    public AssetsImage convertToEntity(){
        return new AssetsImage(this);
    }


    @ApiModelProperty(value = "资产ID")
    private String assetsId;

    @ApiModelProperty(value = "上传表ID")
    private String uploadId;

    @ApiModelProperty(value = "上传时间")
    private Date submitTime;

    @ApiModelProperty(value = "上传人ID")
    private String submitUserId;

    @ApiModelProperty(value = "上传人")
    private String submitUser;

    @TableField(exist = false)
    private String flag;




}
